﻿@model csharp_books_415.Models.BooksEditVm

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@using (Html.BeginForm())
{
    @Html.HiddenFor(model => model.Book.BookId)
    
    <div>
        @Html.LabelFor(model => model.Book.Title)
    </div>
    <div>
        @Html.TextBoxFor(model => model.Book.Title)
    </div>
    <div>
        @Html.LabelFor(model => model.Book.AuthorId)
    </div>
    <div>
        @Html.TextBoxFor(model => model.Book.AuthorId)
    </div>
    <div>
        @Html.LabelFor(model => model.Book.IsBestSeller)
    </div>
    <div>
        @Html.TextBoxFor(model => model.Book.IsBestSeller)
    </div>
    <div>
        @Html.LabelFor(model => model.Book.PageCount)
    </div>
    <div>
        @Html.TextBoxFor(model => model.Book.PageCount)
    </div>

    <div>
        @Html.LabelFor(model => model.Book.Published)
    </div>
    <div>
        @Html.TextBoxFor(model => model.Book.Published)
    </div>




    <div>
        <button type="submit">Save Changes to Book</button>
    </div>
}


